<?php  include $this->admin_tpl('header');?>
<script type="text/javascript" src="<?php echo JS_PATH;?>jquery.cookie.js"></script>
<style type="text/css">
/* 关闭消息提示x按钮 */
.tisi .closetips {
	float: right;
	margin-right: 10px;
	color: #636363;
}
.tisi .closetips:hover {
	color: red;
	text-decoration: none;
}
</style>
<div class="content">
<div class="site"> <?php echo C('site_name')?> <a href="#">站点设置</a> > 后台首页 </div>
<span class="line_white"></span>

<dl class="box fr mt10">
  <dt><strong>系统信息</strong></dt>
  <dd>
    <ul class="odd4">

      <li><span><?php echo $sys_info['os'] ?> / PHP v<?php echo $sys_info['phpv'] ?></span>服务器系统及PHP：</li>
      <li><span><?php echo $sys_info['web_server'] ?></span>服务器软件：</li>
      <li><span><?php echo $sys_info['mysqlv'] ?></span>数据库版本：</li>
      <li><span><?php echo $sys_info['mysqlsize'] ?> MB</span>当前数据大小：</li>
    </ul>
  </dd>
</dl>
<div class="clear"></div>
<script>
$(function(){
    $(".odd1 li:even").css("background","#fff");
    $(".odd2 li:even").css("background","#fff");
    $(".odd3 li:even").css("background","#fff");
    $(".odd4 li:even").css("background","#fff");
    $(".odd5 li:even").css("background","#fff");
    // 关闭系统提示信息
    var now_cookie = $.cookie('closetips');
    var str = '';
    $('.closetips').bind('click',function(){
        var obj = $(this);
        if (now_cookie != undefined && now_cookie != '') {
            var arr_cookie = new Array();
            arr_cookie = now_cookie.split(',');
            if ($.inArray(obj.parent().attr('tips-id'),arr_cookie) > -1) {
                str += now_cookie;
            } else {
                str += now_cookie + ',' + obj.parent().attr('tips-id');
            }
        } else {
            str += ',' + obj.parent().attr('tips-id');
        }
        $.cookie('closetips', str , { expires: 1 });
        obj.parent().fadeOut(1000);        
    })
    /* 将已关闭提示的消息隐藏 */
    if (now_cookie != undefined && now_cookie != '') {
        arr_cookie = now_cookie.split(',');
        var div = $('.closetips').parent();
        $.each(div,function(n, v) {
            if ($.inArray($(this).attr('tips-id'),arr_cookie) > -1) {
                $(this).attr('style','display:none;');
            }
        });
    }
});
</script>
<?php include $this->admin_tpl('copyright') ?>
